.class public Lcom/estrongs/android/taskmanager/GridViewInterceptor;
.super Landroid/widget/GridView;

# interfaces
.implements Landroid/widget/AdapterView$OnItemLongClickListener;


# instance fields
.field private A:Lcom/estrongs/android/taskmanager/ab;

.field private B:I

.field private C:Z

.field private a:Lcom/estrongs/android/taskmanager/aa;

.field private b:Landroid/view/View;

.field private c:Landroid/widget/ImageView;

.field private d:I

.field private e:I

.field private f:I

.field private g:I

.field private h:I

.field private i:I

.field private j:I

.field private k:I

.field private l:Landroid/graphics/Rect;

.field private final m:I

.field private n:I

.field private o:I

.field private p:I

.field private q:Landroid/view/WindowManager;

.field private r:Landroid/view/WindowManager$LayoutParams;

.field private s:I

.field private t:Landroid/graphics/Bitmap;

.field private u:I

.field private v:I

.field private w:I

.field private x:I

.field private y:I

.field private z:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 5

    const/16 v4, 0x80

    const/16 v3, 0x40

    const/16 v2, 0x20

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/GridView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->l:Landroid/graphics/Rect;

    iput v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->s:I

    iput v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->u:I

    iput v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->v:I

    iput v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->w:I

    iput v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->x:I

    iput v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->y:I

    iput v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->z:I

    const/4 v0, -0x1

    iput v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    iput-boolean v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->C:Z

    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->m:I

    new-instance v0, Lcom/estrongs/android/taskmanager/ab;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/estrongs/android/taskmanager/ab;-><init>(Lcom/estrongs/android/taskmanager/GridViewInterceptor;Lcom/estrongs/android/taskmanager/ab;)V

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "window"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->q:Landroid/view/WindowManager;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/taskmanager/GridViewInterceptor;)I
    .locals 1

    iget v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->i:I

    return v0
.end method

.method private a()V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "window"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    invoke-interface {v0, v1}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    iput-object v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->t:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->t:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    iput-object v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->t:Landroid/graphics/Bitmap;

    :cond_1
    return-void
.end method

.method private a(II)V
    .locals 3

    const/high16 v0, 0x3f80

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iput v0, v1, Landroid/view/WindowManager$LayoutParams;->alpha:F

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->f:I

    sub-int v1, p2, v1

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->j:I

    add-int/2addr v1, v2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->g:I

    sub-int v1, p1, v1

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->k:I

    add-int/2addr v1, v2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    const-string v0, "dragView"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, ">>>>>>>> mWindowParamsx="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iget v2, v2, Landroid/view/WindowManager$LayoutParams;->x:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "y="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iget v2, v2, Landroid/view/WindowManager$LayoutParams;->y:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->q:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method private a(Landroid/graphics/Bitmap;II)V
    .locals 4

    const/4 v3, -0x2

    invoke-direct {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a()V

    new-instance v0, Landroid/view/WindowManager$LayoutParams;

    invoke-direct {v0}, Landroid/view/WindowManager$LayoutParams;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    const/16 v1, 0x33

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->g:I

    sub-int v1, p2, v1

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->k:I

    add-int/2addr v1, v2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->f:I

    sub-int v1, p3, v1

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->j:I

    add-int/2addr v1, v2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iput v3, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    iput v3, v0, Landroid/view/WindowManager$LayoutParams;->width:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    const/16 v1, 0x198

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    const/4 v1, -0x3

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->format:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    const/4 v1, 0x0

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

    new-instance v0, Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->s:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundColor(I)V

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->t:Landroid/graphics/Bitmap;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->q:Landroid/view/WindowManager;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->r:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v1, v0, v2}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/taskmanager/GridViewInterceptor;I)V
    .locals 0

    iput p1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/taskmanager/GridViewInterceptor;II)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a(II)V

    return-void
.end method

.method private b(II)I
    .locals 6

    iget v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->f:I

    sub-int v0, p2, v0

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->u:I

    add-int/2addr v0, v1

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->g:I

    sub-int v1, p1, v1

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->v:I

    add-int/2addr v1, v2

    invoke-direct {p0, v1, v0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c(II)I

    move-result v2

    const-string v3, "itempos>>>"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, ">>>>>>>>"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ">>>>x="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v4, ">>>>y="

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v3, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    return v2
.end method

.method static synthetic b(Lcom/estrongs/android/taskmanager/GridViewInterceptor;)I
    .locals 1

    iget v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->h:I

    return v0
.end method

.method static synthetic b(Lcom/estrongs/android/taskmanager/GridViewInterceptor;II)I
    .locals 1

    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b(II)I

    move-result v0

    return v0
.end method

.method private b()V
    .locals 9

    const/4 v2, 0x0

    iget v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getFirstVisiblePosition()I

    move-result v1

    sub-int/2addr v0, v1

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    iget v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    if-le v1, v3, :cond_0

    add-int/lit8 v0, v0, 0x1

    :cond_0
    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getFirstVisiblePosition()I

    move-result v3

    sub-int/2addr v1, v3

    invoke-virtual {p0, v1}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    const-string v1, "vv.equals(mDragItem>>>>>>"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v5, ">>first="

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    move v1, v2

    :goto_0
    invoke-virtual {p0, v1}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildAt(I)Landroid/view/View;

    move-result-object v5

    if-nez v5, :cond_1

    const-string v0, "vv.equals(mDragItem>>>>>>"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "break>>i="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    :cond_1
    iget v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->w:I

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b:Landroid/view/View;

    invoke-virtual {v5, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    if-eqz v4, :cond_2

    const-string v3, "vv.equals(mDragItem>>>>>>"

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, ">>vv="

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, ">>mDragItem="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b:Landroid/view/View;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v3, v7}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    const-string v3, "vv.equals(mDragItem>>>>>>>"

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, ">>i="

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, ">>mDragPos="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget v8, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, ">mFirstDragPos="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget v8, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, ">>childnum"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v3, v7}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v3, 0x4

    :goto_1
    invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v7

    iput v6, v7, Landroid/view/ViewGroup$LayoutParams;->height:I

    invoke-virtual {v5, v7}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v5, v3}, Landroid/view/View;->setVisibility(I)V

    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    :cond_2
    move v3, v2

    goto :goto_1
.end method

.method private b(Z)V
    .locals 5

    const/4 v1, 0x0

    move v0, v1

    :goto_0
    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    if-nez v2, :cond_1

    if-eqz p1, :cond_0

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getFirstVisiblePosition()I

    invoke-virtual {p0, v1}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getTop()I

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v2

    invoke-virtual {p0, v2}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->setAdapter(Landroid/widget/ListAdapter;)V

    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->layoutChildren()V

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    if-nez v2, :cond_1

    return-void

    :cond_1
    invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    iget v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->w:I

    iput v4, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    invoke-virtual {v2, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v2, v1}, Landroid/view/View;->setVisibility(I)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private c(II)I
    .locals 3

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->l:Landroid/graphics/Rect;

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    :goto_0
    if-gez v0, :cond_0

    const/4 v0, -0x1

    :goto_1
    return v0

    :cond_0
    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    invoke-virtual {v1, p1, p2}, Landroid/graphics/Rect;->contains(II)Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getFirstVisiblePosition()I

    move-result v1

    add-int/2addr v0, v1

    goto :goto_1

    :cond_1
    add-int/lit8 v0, v0, -0x1

    goto :goto_0
.end method

.method static synthetic c(Lcom/estrongs/android/taskmanager/GridViewInterceptor;)I
    .locals 1

    iget v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    return v0
.end method

.method static synthetic d(Lcom/estrongs/android/taskmanager/GridViewInterceptor;)I
    .locals 1

    iget v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    return v0
.end method

.method static synthetic e(Lcom/estrongs/android/taskmanager/GridViewInterceptor;)I
    .locals 1

    iget v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    return v0
.end method

.method static synthetic f(Lcom/estrongs/android/taskmanager/GridViewInterceptor;)V
    .locals 0

    invoke-direct {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b()V

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 0

    iput p1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    return-void
.end method

.method public a(Lcom/estrongs/android/taskmanager/aa;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    return-void
.end method

.method public a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->C:Z

    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 8

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    invoke-interface {v1}, Lcom/estrongs/android/taskmanager/aa;->b()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    :cond_0
    :goto_0
    invoke-super {p0, p1}, Landroid/widget/GridView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    :cond_1
    :goto_1
    return v0

    :pswitch_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {p0, v1, v2}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->pointToPosition(II)I

    move-result v3

    const/16 v4, 0xb

    if-eq v3, v4, :cond_1

    const-string v4, "itemnum>>>"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, ">>>>>>>>"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v4, -0x1

    if-eq v3, v4, :cond_0

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getFirstVisiblePosition()I

    move-result v4

    sub-int v4, v3, v4

    invoke-virtual {p0, v4}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    const-string v5, "itemnum>>>"

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, ">>>>>>>>"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getFirstVisiblePosition()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "-RAW-Y-"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "----"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "-----"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v4}, Landroid/view/View;->getTop()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    const-string v5, "itemnum>>>"

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, ">>>>>>>>"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getFirstVisiblePosition()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "-RAW-X-"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "----"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "-----"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v4}, Landroid/view/View;->getLeft()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    invoke-virtual {v4}, Landroid/view/View;->getTop()I

    move-result v5

    sub-int v5, v2, v5

    iput v5, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->f:I

    invoke-virtual {v4}, Landroid/view/View;->getLeft()I

    move-result v5

    sub-int v5, v1, v5

    iput v5, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->g:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v5

    float-to-int v5, v5

    sub-int/2addr v5, v2

    iput v5, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->j:I

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v5

    float-to-int v5, v5

    sub-int/2addr v5, v1

    iput v5, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->k:I

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getFirstVisiblePosition()I

    move-result v5

    sub-int v5, v3, v5

    invoke-virtual {p0, v5}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getChildAt(I)Landroid/view/View;

    move-result-object v5

    iput-object v5, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b:Landroid/view/View;

    iget-object v5, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->l:Landroid/graphics/Rect;

    iget-object v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getLeft()I

    move-result v6

    iput v6, v5, Landroid/graphics/Rect;->left:I

    iget-object v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getRight()I

    move-result v6

    iput v6, v5, Landroid/graphics/Rect;->right:I

    iget-object v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getTop()I

    move-result v6

    iput v6, v5, Landroid/graphics/Rect;->top:I

    iget-object v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getBottom()I

    move-result v6

    iput v6, v5, Landroid/graphics/Rect;->bottom:I

    iget v6, v5, Landroid/graphics/Rect;->bottom:I

    iget v7, v5, Landroid/graphics/Rect;->top:I

    sub-int/2addr v6, v7

    div-int/lit8 v6, v6, 0x2

    iput v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->u:I

    iget v6, v5, Landroid/graphics/Rect;->right:I

    iget v7, v5, Landroid/graphics/Rect;->left:I

    sub-int/2addr v6, v7

    div-int/lit8 v6, v6, 0x2

    iput v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->v:I

    iget v6, v5, Landroid/graphics/Rect;->bottom:I

    iget v7, v5, Landroid/graphics/Rect;->top:I

    sub-int/2addr v6, v7

    iput v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->w:I

    iget v6, v5, Landroid/graphics/Rect;->right:I

    iget v7, v5, Landroid/graphics/Rect;->left:I

    sub-int/2addr v6, v7

    iput v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->x:I

    iget v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->w:I

    iput v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->y:I

    iget v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->x:I

    iput v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->z:I

    iget v6, v5, Landroid/graphics/Rect;->left:I

    if-ge v6, v1, :cond_2

    iget v5, v5, Landroid/graphics/Rect;->right:I

    if-ge v1, v5, :cond_2

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Landroid/view/View;->setDrawingCacheEnabled(Z)V

    invoke-virtual {v4}, Landroid/view/View;->getDrawingCache()Landroid/graphics/Bitmap;

    move-result-object v4

    invoke-static {v4}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v4

    invoke-direct {p0, v4, v1, v2}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a(Landroid/graphics/Bitmap;II)V

    iput v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    iput v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getHeight()I

    move-result v1

    iput v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->n:I

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->m:I

    sub-int v3, v2, v1

    iget v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->n:I

    div-int/lit8 v4, v4, 0x3

    invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I

    move-result v3

    iput v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->o:I

    add-int/2addr v1, v2

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->n:I

    mul-int/lit8 v2, v2, 0x2

    div-int/lit8 v2, v2, 0x3

    invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I

    move-result v1

    iput v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->p:I

    goto/16 :goto_1

    :cond_2
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method

.method public onItemLongClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)Z
    .locals 3

    const/4 v0, 0x0

    sget-object v1, Lcom/estrongs/android/taskmanager/TaskManager;->c:Ljava/lang/String;

    const-string v2, "Malata"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    iget-boolean v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->C:Z

    if-eqz v1, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    invoke-interface {v0}, Lcom/estrongs/android/taskmanager/aa;->a()V

    const/4 v0, 0x1

    goto :goto_0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 8

    const/4 v0, 0x1

    const/4 v7, 0x0

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    if-ltz v1, :cond_0

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    if-le v1, v2, :cond_10

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    if-le v1, v2, :cond_10

    :cond_0
    const-string v1, ">>>>>>>>>>onTouchEvent"

    const-string v2, ">>>>>>>>>>onTouchEvent"

    invoke-static {v1, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    if-eqz v1, :cond_10

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    if-eqz v1, :cond_10

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    invoke-interface {v1}, Lcom/estrongs/android/taskmanager/aa;->b()Z

    move-result v1

    if-eqz v1, :cond_10

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    :cond_1
    :goto_0
    return v0

    :pswitch_0
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->l:Landroid/graphics/Rect;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->getDrawingRect(Landroid/graphics/Rect;)V

    invoke-direct {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a()V

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    if-eqz v1, :cond_3

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    if-ltz v1, :cond_3

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->getCount()I

    move-result v2

    if-ge v1, v2, :cond_3

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    if-ltz v1, :cond_2

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    if-le v1, v2, :cond_3

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    if-le v1, v2, :cond_3

    :cond_2
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    iget v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    invoke-interface {v1, v2, v3, v0}, Lcom/estrongs/android/taskmanager/aa;->a(IIZ)V

    :cond_3
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/ab;->a(Lcom/estrongs/android/taskmanager/ab;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/ab;->a()V

    :cond_4
    invoke-direct {p0, v7}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b(Z)V

    goto :goto_0

    :pswitch_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    float-to-int v3, v3

    iput v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->i:I

    iput v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->h:I

    const-string v4, "mDragView>>>"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, ">>>>>>>getTop"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    invoke-virtual {v6}, Landroid/widget/ImageView;->getTop()I

    move-result v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ">>getBottom="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->c:Landroid/widget/ImageView;

    invoke-virtual {v6}, Landroid/widget/ImageView;->getBottom()I

    move-result v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    iget v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->f:I

    sub-int v4, v3, v4

    if-gez v4, :cond_d

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-static {v4}, Lcom/estrongs/android/taskmanager/ab;->a(Lcom/estrongs/android/taskmanager/ab;)Z

    move-result v4

    if-nez v4, :cond_c

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {v4, v7}, Lcom/estrongs/android/taskmanager/ab;->a(Z)V

    :cond_5
    :goto_1
    invoke-direct {p0, v2, v3}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a(II)V

    invoke-direct {p0, v2, v3}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b(II)I

    move-result v2

    if-ltz v2, :cond_9

    if-eqz v1, :cond_6

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    if-eq v2, v1, :cond_9

    :cond_6
    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    if-ltz v1, :cond_7

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    iget v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    if-le v1, v3, :cond_8

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    if-le v1, v2, :cond_8

    :cond_7
    iput v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    invoke-interface {v1, v2}, Lcom/estrongs/android/taskmanager/aa;->a(I)V

    :cond_8
    invoke-direct {p0}, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->b()V

    const-string v1, ">>>doExpansion"

    const-string v2, ">>>>>>>>>>doExpansion"

    invoke-static {v1, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    :cond_9
    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    if-eq v1, v2, :cond_1

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    if-ltz v1, :cond_a

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    if-le v1, v2, :cond_b

    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->B:I

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    if-le v1, v2, :cond_b

    :cond_a
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->a:Lcom/estrongs/android/taskmanager/aa;

    iget v2, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    iget v3, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    invoke-interface {v1, v2, v3, v7}, Lcom/estrongs/android/taskmanager/aa;->a(IIZ)V

    :cond_b
    iget v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->d:I

    iput v1, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->e:I

    goto/16 :goto_0

    :cond_c
    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-static {v4}, Lcom/estrongs/android/taskmanager/ab;->b(Lcom/estrongs/android/taskmanager/ab;)Z

    move-result v4

    if-eqz v4, :cond_5

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {v4}, Lcom/estrongs/android/taskmanager/ab;->a()V

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {v4, v7}, Lcom/estrongs/android/taskmanager/ab;->a(Z)V

    goto :goto_1

    :cond_d
    iget v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->f:I

    sub-int v4, v3, v4

    iget v5, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->w:I

    add-int/2addr v4, v5

    iget v5, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->j:I

    add-int/2addr v4, v5

    const/16 v5, 0x1e0

    if-le v4, v5, :cond_f

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-static {v4}, Lcom/estrongs/android/taskmanager/ab;->a(Lcom/estrongs/android/taskmanager/ab;)Z

    move-result v4

    if-nez v4, :cond_e

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {v4, v0}, Lcom/estrongs/android/taskmanager/ab;->a(Z)V

    goto/16 :goto_1

    :cond_e
    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-static {v4}, Lcom/estrongs/android/taskmanager/ab;->b(Lcom/estrongs/android/taskmanager/ab;)Z

    move-result v4

    if-nez v4, :cond_5

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {v4}, Lcom/estrongs/android/taskmanager/ab;->a()V

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {v4, v0}, Lcom/estrongs/android/taskmanager/ab;->a(Z)V

    goto/16 :goto_1

    :cond_f
    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-static {v4}, Lcom/estrongs/android/taskmanager/ab;->a(Lcom/estrongs/android/taskmanager/ab;)Z

    move-result v4

    if-eqz v4, :cond_5

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/GridViewInterceptor;->A:Lcom/estrongs/android/taskmanager/ab;

    invoke-virtual {v4}, Lcom/estrongs/android/taskmanager/ab;->a()V

    goto/16 :goto_1

    :cond_10
    invoke-super {p0, p1}, Landroid/widget/GridView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method
